<?php
// +----------------------------------------------------------------------
// | Fanwe 方维p2p借贷系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 云淡风轻(88522820@qq.com)
// +----------------------------------------------------------------------

class testModule extends baseModule
{
    public function index()
    {
        $root = array('status' => 1, 'error' => '', "data" => array(), "page_title" => "测试");
        api_ajax_return($root);
    }

    public function propTable()
    {
        echo '<pre>';
        $test = array(
            'contribution_list' => array('user_id' => 102134, 'type' => 'all'),
            'contribution'      => array('page' => 1, 'page_size' => 30, 'rank_name' => 'all'),
            'consumption'       => array('page' => 1, 'page_size' => 30, 'rank_name' => 'all'),
            'charm_ceil'        => null,
            'rich_ceil'         => null,
        );
        foreach ($test as $key => $value) {
            $new = FanweServiceCall('test', $key, $value);
            $old = FanweServiceCall('test', $key. '_old', $value);
            if ($new == $old) {
                var_dump($key . ' is ok');
            } else {
                var_dump($key . ' is diffent');
                var_dump($new);
                var_dump($old);
                die;
            }
        }
    }
}